import React from 'react'
import OrderIndex from '@/components/order/index'
import OrderInfo from '@/components/order/info'
import OrderRate from '@/components/order/rate'
const list = [
  {
    path: 'index',
    component: OrderIndex,
  },
  {
    path: 'info',
    component: OrderInfo,
  },
  {
    path: 'rate',
    component: OrderRate,
  }
];

//默认父组件 可以自己定义
const layout = () => {
  return (<><React.Router.Outlet /></>)
}

const RouterList = [
  {
    path: '/order',
    component: layout,
    children: list,
  }
]

export default RouterList

